package com.ahearttogo.rpc;

import com.ahearttogo.rpc.client.RpcClient;
import lombok.extern.slf4j.Slf4j;

/**
 * @author xiejialin
 * @date 2020/2/17 7:47 PM
 */
@Slf4j
public class Client {

    public static void main(String[] args) {
        RpcClient client = new RpcClient();
        CalcService calcService = client.getProxy(CalcService.class);
        int r1 = calcService.add(1,2);
        int r2 = calcService.minus(2,1);

        log.info("add result:" + r1);
        log.info("minus result:" + r2);
    }
}
